<ul>
<?php
// requires a $pages variable to have been defined beforehand
// alphabetization eventually
foreach($pages as $page) {
  $pagetitle = $page['title'];
  echo "<li>";
  echo "<a href='?show=$pagetitle'>$pagetitle</a>";
  echo "</li>\n";
}
?>
</ul>